package com.hy.demo.learn.thread;

/**
 * <p>
 *
 * </p>
 *
 * @author cjl
 * @version 1.0
 * @since 2020-07-29 14:20
 */
public class MyThread extends Thread {

    private  String name;

    public MyThread(String name) {
        this.name = name;
    }

    @Override
    public void run(){

        for (int i = 0; i < 10; i++) {
            System.out.println("MyThread is "+name+" i ="+i);
        }
    }
}
